home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / trs141f.zip / NFMT.ZIP / CONFIG.H next >
C/C++ Source or Header  |  1992-07-20  |  2KB  |  96 lines

  1. /*
  2.  *    Compatability
  3.  */
  4.  
  5. #define LARGE_MEM
  6.  
  7. /*
  8.  * The mips compiler claims to be __STDC__, but it is not. 
  9.  */
  10. #ifdef host_mips 
  11. #    ifndef     __GNUC__ 
  12. #    undef    __STDC__
  13. #    endif
  14. #endif
  15.  
  16. #ifdef    __STDC__
  17. #    define    KNOWS_PROTO
  18. #    define    HAS_STDLIB_H
  19. #    define    HAS_STRING_H
  20. #    define    HAS_MEMMOVE
  21. #    define    HAS_STRCHR
  22. #endif
  23.  
  24. #ifdef    __GNUC__
  25. #    define    KNOWS_PROTO
  26. #    define    HAS_STDLIB_H
  27. #    define    HAS_STRING_H
  28. #    define    HAS_MEMMOVE
  29. #    define    HAS_STRCHR
  30. #endif
  31.  
  32. #ifdef host_mips
  33. #    undef HAS_MEMMOVE
  34. #    undef HAS_STDLIB_H
  35. #    define    KNOWS_PROTO
  36. #    ifndef sgi
  37. #        ifndef SYSTYPE_BSD43
  38.             error    must compile with -systype bsd43 on mips machine;
  39.             error    {until they fix the bcopy() problem};
  40.             error   {sorry mips has no #error directive};
  41. #        endif
  42. #    endif
  43. #endif
  44.  
  45.  
  46. #ifdef    __TURBOC__
  47. #    define    KNOWS_PROTO
  48. #    define    HAS_STDLIB_H
  49. #    define    HAS_STRING_H
  50. #   define  HAS_IO_H
  51. #    define    HAS_MEMMOVE
  52. #    define    HAS_STRCHR
  53. #   undef    LARGE_MEM
  54. #endif
  55.  
  56.  
  57.  
  58. #ifdef    KNOWS_PROTO
  59. #    define    ARGS(x)    x
  60. #else
  61. #    define    ARGS(x)    ()
  62. #endif
  63.  
  64. #ifdef    HAS_STDLIB_H
  65. #    include    <stdlib.h>
  66. #endif
  67.  
  68. #ifdef    HAS_STRING_H
  69. #    include    <string.h>
  70. #endif
  71.  
  72. #ifdef HAS_IO_H
  73. #    include    <io.h>
  74. #endif
  75.  
  76. /* NB: this has to be safe for overlapping regions */
  77. #ifndef    HAS_MEMMOVE
  78. #    define    memmove(dest,src,n)    bcopy(src,dest,n)
  79. #endif
  80.  
  81. #ifndef    HAS_STRCHR
  82. #    define    strchr(s,c)    index(s,c)
  83. #endif
  84.  
  85. /*
  86.  * program limits: max. words and characters in a paragraph.
  87.  */
  88.  
  89. #ifndef LARGE_MEM 
  90. #    define    MAXWORDS     1000
  91. #    define    MAXCHARS     5000    
  92. #else
  93. #    define    MAXWORDS    20000L
  94. #    define    MAXCHARS    60000L
  95. #endif
  96.